# -*- coding: utf-8 -*-
from zope.component.persistentregistry import PersistentComponents
from pargo.content.root import Root

def appmaker(zodb_root):
    if not 'root' in zodb_root:
        root = Root()
        zodb_root['root'] = root
        import transaction
        transaction.commit()
    return zodb_root['root']

